package com.kiliter.mapper;
import com.kiliter.vo.NameAndId;
import com.kiliter.vo.NameAndManagerId;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kiliter.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* Description:
* @author zhangjl
* @date 2021/8/16 13:25
*/
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    List<Employee> findByName(@Param("name")String name);

    List<NameAndId> getNameAndIdByManagerId(@Param("managerid")Integer managerid);

    NameAndManagerId getNameAndManagerIdById(@Param("id")Integer id);



    Employee getAllById(@Param("id")Integer id);



}